package main

import (
	"fmt"
	"go_keep_learning/jtthink/design_patterns/easy_factory/factory"
	"go_keep_learning/jtthink/design_patterns/easy_factory/model"
)

func main() {
	frontUser := factory.CreateFactory(factory.FrontUserType)(1, "wdc").(*model.FrontUser)

	fmt.Printf("frontUser %v\n", frontUser)

	if AdminUser, ok := factory.CreateFactory(factory.AdminUserType)(1, "q").(*model.AdminUser); ok {
		fmt.Printf("AdminUser %v\n", AdminUser)
	}
}
